package com.k7.mobile.platform.bo;

import java.io.Serializable;

public interface IJedisBO {
	
	public void init();

	/**
	 * 原子计数器
	 * @param key
	 * @return
	 */
	public Long incr(String key);

	void set(String key, Serializable value);

	void set(String key, Serializable value, int expiredTime);

	<T> T get(String key);

	boolean delete(String key);

	Long getCounter(String key);

	void setCounter(String key, Long counter);
}
